<?php
	//$module & $mdata  == only module vars I think
	$minfo['name']='version';
	$minfo['author']='comperr';
	
	switch($minfo['command'])
	{
		case 'exec':
			$cli->write('MODULE:'. $minfo['name']);
			$mdata['name'] = $parse->getName();
			$curCon->sendRaw('PRIVMSG '. $mdata['name'].' :'.$bot['name'].' '.$bot['version']);
			break;
		case 'perm':
			$cli->write('special permissions would be set here');
			$minfo['perm']=true; //if your allowed to run this command
			break;
		case 'info':
			$cli->write('show information about the module here');
			break;
		case 'init':
			$minfo['perm'] = TRUE; //set to false if you need to run it in perm mode
			break;
	}
?>
